import request from '@/utils/request'


export function stuChange(data){
  return request({
    url:"/dormitory/application/stuChange",
    method:"POST",
    data
  });
}

// 查询宿舍管理申请列表
export function listApplication(query) {
  return request({
    url: '/dormitory/application/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍管理申请详细
export function getApplication(id) {
  return request({
    url: '/dormitory/application/' + id,
    method: 'get'
  })
}

// 新增宿舍管理申请
export function addApplication(data) {
  return request({
    url: '/dormitory/application/add',
    method: 'post',
    data: data
  })
}

// 修改宿舍管理申请
export function updateApplication(data) {
  return request({
    url: '/dormitory/application/update',
    method: 'post',
    data: data
  })
}

// 删除宿舍管理申请
export function delApplication(id) {
  return request({
    url: '/dormitory/application/' + id,
    method: 'post'
  })
}


export function stuDel(id){
  return request({
    url: '/dormitory/application/stuDel/' + id,
    method: 'post'
  })
}
